package cosw.com.shanghaica;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.cosw.sdkShanghaiCA.SHCAProvider;

public class DeviceInfoActivity extends ActionBarActivity {

  @BindView(R.id.tv_device_info)
  TextView tvDeviceInfo;

  private SHCAProvider provider;

  private Context mContext;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_device_info);
    ButterKnife.bind(this);

    mContext = this;

    provider = SHCAProvider.getInstance(this.getApplication());
    String info = provider.getDeviceInfo(1);
    tvDeviceInfo.setText(info);
  }
}
